package per.mapt.webservice;

import javax.xml.ws.Endpoint;

/**
 * Created by mapei on 2017/3/18.
 */
public class ServiceServer {
    protected ServiceServer() {
        System.out.println("StartServer");
        HelloServiceImpl impl = new HelloServiceImpl();
        String address = "http://localhost:8081/helloService";
        Endpoint.publish(address, impl);
    }

    public static void main(String[] args) throws InterruptedException {
        new ServiceServer();
        System.out.println("Server ready...");

        Thread.sleep(10*60 * 1000);
        System.out.println("Server exiting");
        System.exit(0);
    }
}
